package com.mynews.common;

import android.util.Log;

import rx.Subscriber;

/**
 * Created by Administrator on 2017/6/26.
 * 将所有的网络请求结果观察者 统一封装 添加网络等待提示或者其他
 */

public class CommonNetSubscriber<T> extends Subscriber<T>{
    private static final String TAG = "CommonNetSubscriber";

    @Override
    public void onStart() {
        Log.e(TAG, "onStart: ");
    }
    @Override
    public void onCompleted() {
        Log.e(TAG, "onCompleted: ");
    }
    @Override
    public void onError(Throwable e) {
        Log.e(TAG, "Throwable: "+e.getMessage());
    }
    @Override
    public void onNext(T t) {
        Log.e(TAG, "onNext: "+t.toString());
    }
}
